Skip to content

Avoid unnecessary element creation in Modal created with Portal + Hooks #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 16, 2022
Merged

Conversation

MananTank
Copy link
Contributor

Avoid creating unnecessary div elements on each re-render that will be immediately garbage collected. Only create elements when they are really required.

Avoid creating unnecessary div elements that will be immediately garbage collected. Only create elements when they are really required.
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@eps1lon eps1lon merged commit 9785023 into typescript-cheatsheets:main Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants